import {request} from "../utils/request"

/**
 * 请求示例
 */

export const loginByPassword=(username, password) =>{
    return request({
        url: '/auth/login',
        method: 'post',
        data: {
            username,
            password
        },
        withCredentials: true // 携带cookie
    })
}